package me.thinkjet.staticmng.controller;

import com.jfinal.core.Controller;
import com.jfinal.kit.FileKit;
import me.thinkjet.staticmng.service.ImgService;
import me.thinkjet.staticmng.service.UploadService;

import java.io.File;

/**
 * 图片处理类
 */
public class ImageController extends Controller {

	/**
	 * 上传图片
	 */
	public void index() {
		String url = UploadService.uplaodImg(getRequest());
		this.renderText(url);
	}

	/**
	 * 图片旋转
	 */
	public void rotate() {

	}

	/**
	 * 图片裁剪
	 */
	public void crop() {

	}
}
